package heap;

import java.util.ArrayList;
import java.util.List;

public class HeapOutMemoryDemoClient {

    public static void main(String[] args) throws InterruptedException {
        List<HeapOutMemoryDemo> heapList = new ArrayList<>();
        int i = 0;
        for(;;){
            HeapOutMemoryDemo heapOutMemoryDemo = new HeapOutMemoryDemo();
            Thread.sleep(1);
            //System.out.println(i++);
            heapList.add(heapOutMemoryDemo);


        }
    }
}
